require("lualib_bundle");
__TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["4"] = 1,["5"] = 3,["6"] = 3,["7"] = 3,["9"] = 3,["15"] = 11,["17"] = 14,["18"] = 16,["23"] = 19,["24"] = 20,["25"] = 21,["27"] = 23,["28"] = 24,["30"] = 19,["31"] = 28,["32"] = 29,["33"] = 30,["35"] = 32,["36"] = 33,["38"] = 28,["39"] = 37,["40"] = 38,["41"] = 39,["43"] = 41,["44"] = 42,["46"] = 37,["47"] = 46,["48"] = 47,["49"] = 48,["51"] = 50,["52"] = 51,["54"] = 46,["55"] = 55,["56"] = 56,["57"] = 57,["59"] = 59,["60"] = 60,["62"] = 55,["63"] = 64,["65"] = 65,["66"] = 66,["67"] = 67,["68"] = 68,["69"] = 69,["70"] = 70,["71"] = 71,["73"] = 73,["74"] = 74,["75"] = 75,["76"] = 76,["77"] = 77,["79"] = 64,["80"] = 82,["81"] = 83,["82"] = 84,["84"] = 86,["85"] = 87,["87"] = 82,["88"] = 5,["89"] = 6,["90"] = 7,["91"] = 3});
local ____exports = {}
local log = require("jass.log")
____exports.default = __TS__Class()
local Log = ____exports.default
Log.name = "Log"
function Log.prototype.____constructor(self)
end
__TS__SetDescriptor(
    Log.prototype,
    "path",
    {
        get = function(self)
            return log.path
        end,
        set = function(self, path)
            log.path = path
        end
    },
    true
)
function Log.prototype.trace(...)
    if ____exports.default.enablePrint then
        print("Log.trace:", ...)
    end
    if ____exports.default.enable then
        log:trace(...)
    end
end
function Log.prototype.debug(...)
    if ____exports.default.enablePrint then
        print("Log.debug:", ...)
    end
    if ____exports.default.enable then
        log:debug(...)
    end
end
function Log.prototype.info(...)
    if ____exports.default.enablePrint then
        print("Log.info:", ...)
    end
    if ____exports.default.enable then
        log:info(...)
    end
end
function Log.prototype.warn(...)
    if ____exports.default.enablePrint then
        print("Log.warn:", ...)
    end
    if ____exports.default.enable then
        log:warn(...)
    end
end
function Log.prototype.error(...)
    if ____exports.default.enablePrint then
        print("Log.error:", ...)
    end
    if ____exports.default.enable then
        log:error(...)
    end
end
function Log.prototype.errorWithTraceBack(...)
    local ____exports_default_0, ____index_1 = ____exports.default, "index"
    ____exports_default_0[____index_1] = ____exports_default_0[____index_1] + 1
    local tb = debug.traceback()
    if ____exports.default.enablePrint then
        print("Log.errorWithTraceBack:", ...)
        print(("===========Error TraceBack Start[No." .. tostring(____exports.default.index)) .. "]===========")
        print(tb)
        print(("===========Error TraceBack End[No." .. tostring(____exports.default.index)) .. "]===========")
    end
    if ____exports.default.enable then
        log:error(...)
        log:error(("===========Error TraceBack Start[No." .. tostring(____exports.default.index)) .. "]===========")
        log:error(tb)
        log:error(("===========Error TraceBack End[No." .. tostring(____exports.default.index)) .. "]===========")
    end
end
function Log.prototype.fatal(...)
    if ____exports.default.enablePrint then
        print("Log.fatal:", ...)
    end
    if ____exports.default.enable then
        log:fatal(...)
    end
end
Log.enable = true
Log.enablePrint = true
Log.index = 1
____exports.default = Log
return ____exports
